HandlerCompat

Helper for accessing features in Handler.

Functions

Link copied to clipboard
Create a new Handler whose posted messages and runnables are not subject to synchronization barriers such as display vsync.
Link copied to clipboard
open fun hasCallbacks(@NonNull handler: Handler, @NonNull r: Runnable): Boolean
Checks if there are any pending posts of messages with callback r in the message queue.
Link copied to clipboard
open fun postDelayed(@NonNull handler: Handler, @NonNull r: Runnable, @Nullable token: Any, delayMillis: Long): Boolean
Causes the Runnable r to be added to the message queue, to be run after the specified amount of time elapses.